<template>
  <div id="dialog">
    <div class="weui-mask"></div>
    <div class="weui-dialog">
      <div class="weui-dialog__bd" v-html="message"></div>
      <div class="weui-dialog__ft">
        <a href="javascript:;" class="weui-dialog__btn weui-dialog__btn_primary" @click="close">确定</a>
      </div>
    </div>
  </div>
</template>
<script type="text/javascript">
  import '../assets/css/dialog.scss';
	export default{
		props: ['message'],
    methods: {
		    close(){
		        this.$emit('close-dialog')
        }
    }
	}
</script>
